package com.example.androidpattern.factory.simple;

/**
 * @ClassName: SimpleFactory$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/11/10$ 16:29$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class SimpleFactory {
    public IRouJiaMo makeRouJiaMo(String type) {
        switch (type) {
            case "A":
                return new ARouJiaMo();
            case "B":
                return new BRouJiaMo();
        }
        return null;
    }
}
